package myapps.ttclient.protocol.message;

import java.io.DataOutputStream;
import java.io.IOException;

import myapps.ttclient.GlobalVariables;
import myapps.ttclient.baseclass_and_interface.TTClientMessage;

public class NMSAuthentificationRequestMessage extends TTClientMessage {

	//private long M;
	private int mi;
	private int I;
	
	public NMSAuthentificationRequestMessage(int mi, int I){
		//this.M = M;
		this.mi = mi;
		this.I = I;
	}
	
	@Override
	public void toDataOutputStream(DataOutputStream dos) throws IOException {
		dos.writeByte(NMS_AUTHENTIFICATION_REQUEST);
		dos.writeInt(GlobalVariables.NO_LENGTH_CODE);
		
		//dos.writeLong(this.M);
		dos.writeInt(this.mi);
		dos.writeInt(this.I);
	}

}
